﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="industrymenu.ascx.cs" Inherits="uc_industrymenu" %>
<%@ Import Namespace="System.Data" %>
    <div class="wid960">
        <div class="menu">
            <div class="menu_l"><a href="industry.html" style="color:#fff">日发产业</a></div>
            <ul>
                <% 
                    if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
                    {
                        foreach (DataRow dr in ds.Tables[0].Rows)
                        {
                            string name = dr["LM_Name"].ToString();
                            string url = dr["LM_SourceUrl"].ToString();
                            string urlName = dr["LM_UrlName"].ToString();
                            if (string.IsNullOrEmpty(url))
                            {
                                url = Utility.GetLanmuUrlNmae(Utility.IndustryCid) + "-" + urlName + ".html";
                            }
                %>
                <li <%if(Request.RawUrl.Contains(url)) {%> class="cur"<%} %> title="<%=name %>"><a href="<%=url %>"><%=name %></a></li>
                <% 
                        }
                    }
                    else
                    { 
                %>
                <li><a href="industry-spinner.html">纺织机械 </a></li>
                <li><a href="industry-sport.html">体育文化</a></li>
                <li><a href="industry-investment.html">金融投资</a></li>
                <li><a href="industry-machine.html">工具机械</a></li>
                <li><a href="industry-agriculture.html">农牧产业</a></li>
                <%                     
                    }                 
                %>
            </ul>
            <div class="menu_r"></div>
        </div>
    </div>